package com.taowan.xunbaozl.morning_speak.design_pattern.day17;

/**
 * com.taowan.xunbaozl.morning_speak.design_pattern.day17.app
 * Created by diql on 2016/3/14.
 */
public class Visitor2 implements Visitor {


    @Override
    public void visit(Node1 n1) {
        System.out.println(n1.method1());
    }

    @Override
    public void visit(Node2 n2) {
        System.out.println(n2.method2());
    }
}
